Ext.define('AM.store.StoreGrid', {
    extend: 'Ext.data.Store',
    model: 'AM.model.ModelGrid',
    //autoLoad: true, //se incarca la initiere
    proxy: {
        type: 'ajax',
        url:'data/grid.php',
       // api: {
        //	url:'data/grid.php'
        	//read: 'data/users.json',
        	//update: 'data/updateUsers.json'
        //},
       reader: {
            type: 'json',
            root: 'rows',
            //successProperty: 'success'
        },
        extraParams: {
        	acction: 'dateout',
        	UserID: '1',
        	}
    },
    //fields: ['name', 'email'],
    /*data: [
        {name: 'Ed',    email: 'ed@sencha.com'},
        {name: 'Tommy', email: 'tommy@sencha.com'},
        {name: 'Viorel', email: 'viorel@sencha.com'}
    ]*/
});